Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

146
Vistas
replacing "window.location" with "window.open" having no effect

I am using a click-to-call chrome extension that has a nasty habit of redirecting the call within the active window.

Obviously not the best for maintaining a workflow, and I'm not one to let an extension boss me around so I thought I'd make some tweaks, but have had no luck.

To my understanding, it should be as simple as changing window.location to window.open but it simply won't do anything once I make the change and reload it into chrome. Am I missing something?

    chrome.storage.sync.get(['disabled', window.location.origin], function(result) {
      checked = result.disabled;
      chrome.runtime.onMessage.addListener(function(request) {
        switch (request.type) {
          case 'selectionVod':
            window.location = ("votel://" + request.info.selectionText);
            break;
          case 'selectionVcc':
            chrome.storage.sync.get(['vccPlatform'], function(result) {
              var vccPlatform = result.vccPlatform;
              if (vccPlatform && vccPlatform.includes('odcc')) {
                window.location = ("https://" + vccPlatform + ".providerdomain.ca/AGUI/make_call.php?phone=" + request.info.selectionText);
              } else {
                window.location = ("https://vcc-" + vccPlatform + ".providerdomain.com/AGUI/make_call.php?phone=" + request.info.selectionText);
              }
            });```
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda